package service.exception;

public class DocException extends Exception {

    /**
     * 
     */
    private static final long serialVersionUID = -5167736788226589250L;

    public enum CODE {
        UNKNOWN,
        DISALLOW_UPLOAD_AFTER_VERIFIED
    }

    private CODE mCode;

    public DocException(CODE code, Exception e) {
        super(e);
        this.mCode = code;
    }

    public DocException(CODE code) {
        super(code.toString());
    }

    public CODE getmCode() {
        return mCode;
    }

    public void setmCode(CODE mCode) {
        this.mCode = mCode;
    }

}
